<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>子产品新增</title>
<script type="text/javascript" src="<%=context%>resources/modules/business/projectManager/subProductAdd.js?r=<%=Math.random()%>"></script>
<script type="text/javascript" src="<%=context%>resources/modules/system/common/multi.upload.js"></script>
<script type="text/javascript">
</script>
</head>

<body class="sub-page">
	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;产品运营</p>
		<p class="current">&gt;产品总览</p>
		<p class="current">&gt;新增子产品基本信息</p>
	</div>
	
	<title>新增子产品基本信息</title>
	<div class="container">
		<div class="page-content">
			<!-- 系列产品新建模态窗 -->
			<form id="subProductAddForm" role="form" class="form-horizontal" method="post" action="<%=context%>business/projectManager/saveSubProductData.do">
				<!-- 如果将表单禁用，就给fieldset添加disabled属性 -->
				<input type="text" id="status" name="status" hidden="true" value="">
				<div class="model">
					<div class="page-content">
						<div class="model-head">
	      					<span class="head-boder-left"></span>
		        			<h2>新增子产品基本信息</h2>
		      			</div>
						<div class="model-content">
							<div class="form-group">
								<label class="col-sm-2 control-label">系列产品<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="prjcode" id="prjcode" placeholder="请选择系列产品" onchange="prjcodeOnchange();"></select>
								</div>
							</div>
						
							<div class="form-group" style="display:none;" id="prdcodeShow">
								<label class="col-sm-2 control-label">产品名称<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="prdcode" id="prdcode" placeholder="请选择产品名称" ></select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">子产品简称<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入产品简称" class="form-control" name="subFundSname" id="subFundSname" value="" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">子产品全称<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入产品全称" class="form-control" name="subFundLname" id="subFundLname" value="" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">基金代码</label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入基金代码" class="form-control" name="fundCode" id="fundCode" value="" maxlength="10" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">风险级别<span class="text-danger"></span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="riskLevel" id="riskLevel" placeholder="请选择风险级别" ></select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">货币类型<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="currencyType" id="currencyType" placeholder="请选择货币类型" ></select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">赎回规则<span class="text-danger"></span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="redemptionRule" id="redemptionRule" placeholder="请选择赎回规则" >
										<option value=""></option>
										<option value="先进先出">先进先出</option>
										<option value="后进先出">后进先出</option>
									</select>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">募集期利息处理方式<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="intMode" id="intMode" placeholder="请选择募集期利息处理方式" ></select>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">初始面值（元）<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入初始面值" class="form-control" name="initParValue" id="initParValue" value="" maxlength="3"/>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">是否有前期支付费用<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<select class="select2" name="isBeforePayFee" id="isBeforePayFee" placeholder="请选择是否有前期支付费用" >
										<option value=""></option>
										<option value="1">是</option>
										<option value="0">否</option>
									</select>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">认购起点（个人）（元）<span class="text-danger"></span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入认购起点（个人）" class="form-control" name="indBookStart" id="indBookStart" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">认购起点（机构）（元）<span class="text-danger"></span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入认购起点（机构）" class="form-control" name="insBookStart" id="insBookStart" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">认购步幅<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入认购步幅" class="form-control" name="bookStep" id="bookStep" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">认购费率（%）<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入认购费率" class="form-control" name="bookFeeRate" id="bookFeeRate" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">申购起点（个人）（元）<span class="text-danger"></span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入申购起点（个人）" class="form-control" name="indDeclareStart" id="indDeclareStart" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">申购起点（机构）（元）<span class="text-danger"></span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入申购起点（机构）" class="form-control" name="insDeclareStart" id="insDeclareStart" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">申购步幅<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入申购步幅" class="form-control" name="declareFeeRate" id="declareFeeRate" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">申购费率（%）<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入申购费率" class="form-control" name="applyStep" id="applyStep" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">赎回费率（%）<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入赎回费率" class="form-control" name="redeemFeeRate" id="redeemFeeRate" value="" />
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">违约退出费率（%）<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="请输入违约退出费率" class="form-control" name="breachFeeRate" id="breachFeeRate" value="" />
								</div>
							</div>
						</div>
						<div class="page-footer">
							<button type="button" id="submitBtn" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="submitPrjStartupAddForm('501');">提交</button>
							<button type="button" id="cancelBtn" class="btn btn-link btn-w-xs" onclick="window.close();">取消</button>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>